@extends('layouts.template')

@section('title', '管理后台')

@section('content')

    <script>
        $(function(){


        });

    </script>

    <div class="panel-body">
        <div class="panel panel-default">
            <div class="panel-body">
                <form action="" method="GET" class="form-inline">
                    <div>
                        {!! $filter !!}
                    </div>
                </form>
            </div>
        </div>
    </div>

    <div class="contentpanel" id="contentpanel">

        <div class="row">
            <div class="col-md-12">
                <div class="table-responsive">
                    <table class="table mb30">
                        <thead>
                        <tr style="white-space:nowrap">
                            <th>师傅名字</th>
                            <th>交易时间</th>
                            <th>流水号</th>
                            <th>涉及订单号</th>
                            <th>交易类型</th>
                            <th>收支金额(元)</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php foreach ($list as $row):?>
                            <tr data-id="{{$row->id}}">
                                <td>{{$row->master_name}}</td>
                                <td>{{$row->add_time}}</td>
                                <td>{{$row->trade_number}}</td>
                                <td>{{$row->order_serial_number}}</td>
                                <td>{{$row->type_text}}</td>
                                <td>{{$row->amount}}</td>
                            </tr>
                        <?php endforeach;?>
                        </tbody>
                    </table>
                </div>
                <!-- table-responsive -->
                {{ @!$list->isEmpty() ? $list->appends(request()->all())->links() : '' }}
            </div>
            <!-- col-md-12 -->
        </div>
    </div><!-- contentpanel -->


@endsection

